#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
    int foot;
    int head;
    cin >> head >> foot;
    bool ifSolution = false;
    for(int x = 0; x <= head; x++)
    {
        int y = head - x;
        int temp = 2 * x + 4 * y;
        if(temp == foot)
        {
            ifSolution = true;
            cout << "chickens = "<<x <<"; rabbits = " <<y;
            break;
        }
    }
    if(!ifSolution)
        cout << "No solution!";
}